from rest_framework.pagination import PageNumberPagination


# 查询字符?page=1&page_size=5&ordering=-create_time
class StandardResultsSetPagination(PageNumberPagination):
    # 设置每一页的数量
    page_size = 3
    # 分页数量的最大值
    max_page_size = 20
    # 地址栏上分页数据量的名称
    page_size_query_param = "page_size"
